/// total : 2
/// data : {"images":[{"oFileName":"下载.jpeg","oUrl":"http://changxinshangwu.com/group1/M00/00/09/rB4ADGDnuBeATbg7AAAZOLKmtUE21.jpeg","status":1,"tUrl":"http://changxinshangwu.com/group1/M00/00/09/rB4ADGDnuBeATbg7AAAZOLKmtUE21.jpeg"},{"oFileName":"ic_add_media.png","oUrl":"http://changxinshangwu.com/group1/M00/00/09/rB4ADGDnuBeAU4bBAAACBJTq8f8067.png","status":1,"tUrl":"http://changxinshangwu.com/group1/M00/00/09/rB4ADGDnuBeAU4bBAAACBJTq8f8067.png"}],"audios":[],"videos":[],"others":[]}
/// success : 2
/// failure : 0
/// resultCode : 1
/// time : 90

class DynamicMediaModel {
  int _total;
  Data _data;
  int _success;
  int _failure;
  int _resultCode;
  int _time;

  int get total => _total;
  Data get data => _data;
  int get success => _success;
  int get failure => _failure;
  int get resultCode => _resultCode;
  int get time => _time;

  DynamicMediaModel({
      int total,
      Data data, 
      int success, 
      int failure, 
      int resultCode, 
      int time}){
    _total = total;
    _data = data;
    _success = success;
    _failure = failure;
    _resultCode = resultCode;
    _time = time;
}

  DynamicMediaModel.fromJson(dynamic json) {
    _total = json["total"];
    _data = json["data"] != null ? Data.fromJson(json["data"]) : null;
    _success = json["success"];
    _failure = json["failure"];
    _resultCode = json["resultCode"];
    _time = json["time"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["total"] = _total;
    if (_data != null) {
      map["data"] = _data.toJson();
    }
    map["success"] = _success;
    map["failure"] = _failure;
    map["resultCode"] = _resultCode;
    map["time"] = _time;
    return map;
  }

}

/// images : [{"oFileName":"下载.jpeg","oUrl":"http://changxinshangwu.com/group1/M00/00/09/rB4ADGDnuBeATbg7AAAZOLKmtUE21.jpeg","status":1,"tUrl":"http://changxinshangwu.com/group1/M00/00/09/rB4ADGDnuBeATbg7AAAZOLKmtUE21.jpeg"},{"oFileName":"ic_add_media.png","oUrl":"http://changxinshangwu.com/group1/M00/00/09/rB4ADGDnuBeAU4bBAAACBJTq8f8067.png","status":1,"tUrl":"http://changxinshangwu.com/group1/M00/00/09/rB4ADGDnuBeAU4bBAAACBJTq8f8067.png"}]
/// audios : []
/// videos : []
/// others : []

class Data {
  List<Images> _images;
  List<Images> _audios;
  List<Images> _videos;
  List<Images> _others;

  List<Images> get images => _images;
  List<Images> get audios => _audios;
  List<Images> get videos => _videos;
  List<Images> get others => _others;

  Data({
      List<Images> images,
      List<dynamic> audios,
      List<dynamic> videos, 
      List<dynamic> others}){
    _images = images;
    _audios = audios;
    _videos = videos;
    _others = others;
}

  Data.fromJson(dynamic json) {
    if (json["images"] != null) {
      _images = [];
      json["images"].forEach((v) {
        _images.add(Images.fromJson(v));
      });
    }
    if (json["audios"] != null) {
      _audios = [];
      json["audios"].forEach((v) {
        _audios.add(Images.fromJson(v));
      });
    }
    if (json["videos"] != null) {
      _videos = [];
      json["videos"].forEach((v) {
        _videos.add(Images.fromJson(v));
      });
    }
    if (json["others"] != null) {
      _others = [];
      json["others"].forEach((v) {
        _others.add(Images.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    if (_images != null) {
      map["images"] = _images.map((v) => v.toJson()).toList();
    }
    if (_audios != null) {
      map["audios"] = _audios.map((v) => v.toJson()).toList();
    }
    if (_videos != null) {
      map["videos"] = _videos.map((v) => v.toJson()).toList();
    }
    if (_others != null) {
      map["others"] = _others.map((v) => v.toJson()).toList();
    }
    return map;
  }

}

/// oFileName : "下载.jpeg"
/// oUrl : "http://changxinshangwu.com/group1/M00/00/09/rB4ADGDnuBeATbg7AAAZOLKmtUE21.jpeg"
/// status : 1
/// tUrl : "http://changxinshangwu.com/group1/M00/00/09/rB4ADGDnuBeATbg7AAAZOLKmtUE21.jpeg"

class Images {
  String _oFileName;
  String _oUrl;
  int _status;
  String _tUrl;
  int _length;

  String get oFileName => _oFileName;
  String get oUrl => _oUrl;
  int get status => _status;
  String get tUrl => _tUrl;
  int get length => _length;


  set setLength(int length) {
    _length = length;
  }
  Images({
      String oFileName, 
      String oUrl, 
      int status, 
      String tUrl}){
    _oFileName = oFileName;
    _oUrl = oUrl;
    _status = status;
    _tUrl = tUrl;
}

  Images.fromJson(dynamic json) {
    _oFileName = json["oFileName"];
    _oUrl = json["oUrl"];
    _status = json["status"];
    _tUrl = json["tUrl"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["oFileName"] = _oFileName;
    map["oUrl"] = _oUrl;
    map["status"] = _status;
    map["tUrl"] = _tUrl;
    map["length"] = _length;
    return map;
  }

}